package cn.lbd.auth.dao;


import cn.lbd.auth.entity.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserDao {
    User selectOperatorById(Integer operatorId);

    String selectOrgNameFullByOperatorId(int operatorId);

    int selectByFullName(String orgNameFull);

    User selectOperatorByLoginName(String loginName);

    void resetErrCount(User user);

    void updateErrCount(Integer operatorId);

    /* 根据operatorId查询对应TL的operatorId */
    String selectTLOperatorIdByOperatorId(int operatorId);

    /* 根据operatorId查询对应Manger的operatorId */
    String selectManagerOperatorIdByOperatorId(int operatorId);

    /* 根据operatorId查询对应ViceGeneralManger的operatorId */
    String selectVGManagerOperatorIdByOperatorId(int operatorId);

    /* 根据operatorId查询对应GeneralManger的operatorId */
    String selectGManagerOperatorIdByOperatorId(int operatorId);

}
